<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/common/init.jsp"%>
<%@ page language="java" import="com.zhiyou.app.shop.website.util.EncryptData" %>
<%@ page language="java" import="com.zhiyou.app.shop.website.dao.pojo.User"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>澳斯浪廷会员平台</title>
<link href="<c:url value='/resources/css/css.css'/>" type="text/css" rel="stylesheet"/>
</head>
<%
	User user_init = (User) session.getAttribute("user");
	String account = EncryptData.encrypt(user_init.getUserAccount());
%>
<body leftmargin="0">
<div class="main">
<div class="width_l"><iframe src="${ctx}/menu.action" frameborder="0" width="250" height="100%" class="menu"></iframe></div>
    <div class="right">
    <div class="width_r">
        <div class="menu_home">
            <ul>

            <li><a href="http://103.31.222.70/aycshop/manage/login.action?encodeUserId=<%=account%>" target="_blank">商城管理</a></li>
               
                <li><a href="information.action">消息</a></li>
                <li><a href="notice.action">公告中心</a></li>
                <li><a href="news.action">新闻中心</a></li>
                <li><a href="inbox.action">收件箱</a></li>
                <li><a href="tomail.action">写邮件</a></li>
                <li><a href="sent.action">已发送</a></li> 
                <li><a href="${ctx}/exit.action">安全退出</a></li> 
            </ul>
        </div>
        <div class="three">  
            <div class="thr_l">
              <div class="hyid">欢迎您：<span>${user.userAccount}</span></div>
              <div class="hyxj">等　级：<span>
              			<c:if test="${user.level =='1' }" >
							一星
						</c:if>
						<c:if test="${user.level =='2' }" >
							二星
						</c:if>
						<c:if test="${user.level =='3' }" >
							三星
						</c:if>
						<c:if test="${user.level =='4' }" >
							四星
						</c:if>
						<c:if test="${user.level =='5' }" >
							五星
						</c:if></span></div>
               <div class="dengji">
                   <div class="dj_star"><c:forEach begin="1" end="${user.level}"><img src="<c:url value='/resources/images/star.jpg'/>"/> </c:forEach>
                   	<c:if test="${user.level <'5' }"><c:forEach begin="${user.level + 1 }" end="5"><img src="<c:url value='/resources/images/star_h.jpg'/>"/> </c:forEach></c:if>
                   </div>
                   <div class="shs"><a href="promote.action"><img src="<c:url value='/resources/images/icon.jpg'/>" border="0" /></a></div>
               </div>
          </div>
            <div class="thr_c">
                <h2>游戏豆交易</h2>
              <div class="pic">当前价格：${prize}</div>
          </div>
            <div class="thr_r">
                <div class="hyid">类型：<span>正式会员</span></div>
                <div class="zhuce"><a href="member.action"><img src="<c:url value='/resources/images/icon_1.jpg'/>" border="0" /></a></div>
            </div>
      </div>
        <div class="news_top_home"><img src="<c:url value='/resources/images/top.jpg'/>" /></div>
        <div class="news">
            <h3>新闻公告</h3>
            <div class="vvbt">
	          <table width="840" border="0" align="center" cellpadding="0" cellspacing="0">
			  <tr>
			    <td width="620" class="vvd">标题</td>
			    <td width="220" class="vvd">发布时间</td>
			  </tr>
			</table></div>
			<table width="840" border="0" align="center" cellpadding="0" cellspacing="0">
			<c:forEach var="news" items="${page.result }">
				<tr>
				    <td width="620" class="vv"><a href="${ctx}/newsinfo.action?id=${news.id}">${news.title}</a></td>
				    <td width="220" class="vv"><fmt:formatDate value="${news.createDate}" pattern="yyyy-M-dd HH:mm:ss"/>
				    </td>
				</tr>
			</c:forEach>
			</table>
            
            <!-- 
            <div class="news_tit">标题<span>发布时间</span></div>
            <div class="news_list">
                <ul>
                    <li><div class="list_l">关于严格规范市场运营秩序的通知</div><div class="list_r">2014-1-19 0:00:00</div></li>
                    <li><div class="list_l">关于严格规范市场运营秩序的通知</div><div class="list_r">2014-1-19 0:00:00</div></li>
                    <li><div class="list_l">一页最多8条，超过8条出现页码</div><div class="list_r">2014-1-19 0:00:00</div></li>
                	<span class="page">总共：5 页　<span>1</span>　2　3　4　5　转到 <select name=""></select> 页</span>
                </ul>
            </div> -->
            
        </div>
        <div class="news_down"><img src="<c:url value='/resources/images/down.jpg'/>" /></div>
    </div>
    </div>
</div>
</body>
</html>
